package com.zt.api;

import com.zt.user.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "bank-user",path = "user")
public interface UserInfoFeign {
    //    获取当前用户信息
    @GetMapping("getUserInfoUserId")
    public UserInfo getUserInfoUserId();
    //    根据用户信息获取当前用户信息判断信息是否正确
    @GetMapping("getUserInfoByUserInfo")
    public UserInfo getUserInfoByUserInfo(@RequestParam("idCard") String idCard);
}
